package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category {
    //分类ID
    private Integer   id;
    //分类名字
    private String   name;
    //排序
    private Integer   sort;
    //父类ID  0表示顶级分类
    private Integer  parentId;

    //这个属性是经过分析需求得出的
    //子属性集合
    private List<Category> children;
}
